<template>
	<view>
		<image mode="widthFix"  src="@/static/imager/index/install-standard.jpg"></image>
		 

	</view>

</template>

<script>
	export default {
		data() {
			return {
				personPicUrl: 'https://picx.zhimg.com/v2-d6f44389971daab7e688e5b37046e4e4_720w.jpg?source=172ae18b',
				imgsData: ["https://picx.zhimg.com/v2-d6f44389971daab7e688e5b37046e4e4_720w.jpg?source=172ae18b"],
				imgsData: ["https://picx.zhimg.com/v2-d6f44389971daab7e688e5b37046e4e4_720w.jpg?source=172ae18b"]
			}
		},
		methods: {
			pictureView(index,imags){
				let imgs = imags.map( item =>{
				//只返回图片路径
					return item
				})
				//调用预览图片的方法
				uni.previewImage({
					urls:imgs,
					current:index
				})
			},
			imgPreview(url) {
			            uni.previewImage({
			                urls: [url]
			            })
			},

			imgPreview(url) {
				let arr = []
				this.imgsData.forEach((item, index) => {
					if (item.img) {
						arr.push(item.img)
					}
				})
				let index = arr.findIndex(value => value == url)
				uni.previewImage({
					current: index,
					urls: arr,
				});
			}

		}
	}
</script>

<style lang="scss">
	image {
		width: 100%;
		height: auto;
	}
</style>
